package com.sunnyatwal.kettlebell.db;

import com.sunnyatwal.kettlebell.model.Exercise;

public class WorkoutDatabase extends Database<Exercise, String> {

	
	public WorkoutDatabase(Class<Exercise> type, String path) {
		super(type, path);
	}

	
	@Override
	public boolean isEqual(Exercise firstEntry, String secondEntry) {
		return firstEntry.isTitleEqual(secondEntry);
	}

	
	@Override
	public int compareEntries(Exercise lhs, Exercise rhs) {
		return lhs.getTitle().compareTo(rhs.getTitle());
	}

	
}
